import request from '@/utils/request';

export async function reqTySupplierList(data: any, options?: any): Promise<any> {
	return request('/api/sys/supplier/list', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqAddTySupplier(data: any, options?: any): Promise<any> {
	return request('/api/sys/supplier/create', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqUpdateTySupplier(data: any, options?: any): Promise<any> {
	return request('/api/sys/supplier/update', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqDeleteTySupplier(data: any, options?: any): Promise<any> {
	return request('/api/sys/supplier/delete', {
		method: 'POST',
		data,
		...(options || {}),
	});
}


